//数据类型

//
export interface ResopnseData {
  code: number
  message: string
  ok: boolean
}

//菜单数据与按钮数据的ts类型
export interface Permisstion {
  id?: number
  createTime: string
  updateTime: string
  pid: number
  name: string
  code: string
  toCode: string
  type: number
  status: null
  level: number
  children?: Permisstion
  select: boolean
}

export type PermisstionList = Permisstion[]

//菜单接口返回数据ts类型
export interface PermisstionResponseData extends ResopnseData {
  data: PermisstionList
}

//添加修改菜单携带参数ts类型
export interface MenuParams {
  id?: number
  code: string
  level: number
  name: string
  pid: number
}
